package cn.wolfcode.wolf2w.business.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.swing.*;
@Configuration
public class TravelRabbitMQConfig {

    @Bean
    public Queue esStrategyQueue(){
        return new Queue("strategyQueue",true,false,false,null);
    }

    @Bean
    public FanoutExchange esStrategyExchange(){
        return new FanoutExchange("strategyExchange",true,false,null);
    }

    @Bean
    public Binding esStrategyBinding(){
        return new Binding("strategyQueue",Binding.DestinationType.QUEUE,"strategyExchange","",null);
    }
}